import math as m
import matplotlib.pyplot as plt
import numpy as np

def fun(x):
    return (m.sin(x-2))**2*m.exp(-x**2)
plt.ylabel('f(x)')
plt.xlabel('x')
plt.title('f(x)=sin²(x−2)-e^-x²')
x = np.linspace(0, 2, num=100)
y=[fun(i) for i in x]
plt.plot(x,y)
plt.show()


